import table from '@ylz-material/table';
import '@ylz-material/table/lib/style.css';
import headerMenu from '@ylz-material/header-menu';
import '@ylz-material/header-menu/lib/style.css';
import sideMenu from '@ylz-material/side-menu';
import '@ylz-material/side-menu/lib/style.css';
import pageTabs from '@ylz-material/page-tabs';
import '@ylz-material/page-tabs/lib/style.css';
import rest from '@ylz-material/rest';
import '@ylz-material/rest/lib/style.css';
import filter from '@ylz-material/filter';
import '@ylz-material/filter/lib/style.css';
import drawer from '@ylz-material/drawer';
import '@ylz-material/drawer/lib/style.css';
import dialog from '@ylz-material/dialog';
import '@ylz-material/dialog/lib/style.css';
import batchOperation from '@ylz-material/batch-operation';
import '@ylz-material/batch-operation/lib/style.css';
import descriptions from '@ylz-material/descriptions';
import '@ylz-material/descriptions/lib/style.css';
import yunImport from '@ylz-material/import';
import '@ylz-material/import/lib/style.css';
import yunTask from '@ylz-material/task';
import '@ylz-material/task/lib/style.css';
import yunExcelEdit from '@ylz-material/excel-edit';
import '@ylz-material/excel-edit/lib/style.css';
import ProForm from '@ylz-material/pro-form';
import YunPagination from '@ylz-material/pagination';
import '@ylz-material/pagination/lib/style.css';
import ProTable from '@ylz-material/pro-table';
import '@ylz-material/pro-table/lib/style.css';
import ProDetail from '@ylz-material/pro-detail';
import '@ylz-material/pro-detail/lib/style.css';
import ScrollCounter from '@ylz-material/scroll-counter';
import '@ylz-material/scroll-counter/lib/style.css';

const components = [
  table,
  headerMenu,
  sideMenu,
  pageTabs,
  rest,
  filter,
  drawer,
  dialog,
  batchOperation,
  descriptions,
  yunImport,
  yunTask,
  yunExcelEdit,
  ProForm,
  ProTable,
  ProDetail,
  ScrollCounter,
  YunPagination,
];

const install = (app) => {
  components.forEach((item) => {
    app.use(item);
  });
};

export default {
  install,
};
